package com.suptracking.service;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import com.suptracking.dao.UserDao;
import com.suptracking.entity.User;

@Stateless
public class UserService {

	@EJB
	UserDao userdao;
	
	public void addUserService(User user){
		userdao.addUser(user);
		
	}
	public void deleteUserbyId(long id){
		userdao.deleteUserbyId(id);
	}
	public User getUserInfo(long _id){
		return userdao.getUserInfo(_id);
	}
	public List<User> getAllUser(){
		return userdao.getAllUser();
	}
	
	public User getUserByName(String pseudo){
		return userdao.getUserByName(pseudo);
	}
	public Long getNumberOfUser(){
		return userdao.getNumberOfUser();
	}
	public User editUser(User user){
		return userdao.editUser(user);
	}
}
